<!DOCTYPE html>
<template>
  <div>
    <div id="title">
      <img @click="sendBack" src="@/assets/img/u57.png" alt="">
      <span class="title-content">{{ text }}</span>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    props: ['text'],
    methods: {
      sendBack(){
        this.$emit('sendBack')
      }
    }
  }
</script>

<style scoped>
  #title {
    margin-top: 6vw;
  }

  #title img {
    position: absolute;
    width: 4vw;
    left: 3.5vw;
    vertical-align: middle;
  }

  .title-content {
    display: block;
    text-align: center;
    font-size: 4vw;
    font-weight: 700;
    color: #33336a;
  }
</style>
